using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;

namespace Project.AdminAPI
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateHostBuilder(args).Build().Run();
        }

        public static IHostBuilder CreateHostBuilder(string[] args)
        {
            var IHostBuilder = Host.CreateDefaultBuilder(args);
            //var configuration = new ConfigurationBuilder().SetBasePath(Environment.CurrentDirectory)
            //    .AddJsonFile("appsettings.json")
            //    .Build();
            return IHostBuilder.ConfigureWebHostDefaults(w =>
                   {
                       w.UseStartup<Startup>();
                   });
        }
    }
}
